<?php 
$url = $_SERVER['PHP_SELF'];  //取地址
$arr = explode( '/' , $url );  //拆分地址
$filename= $arr[count($arr)-1]; //取文件名，区分大小写

if ($filename == 'index.php' or $filename == 'Index.php')
	$css_1='on';
elseif ($filename == 'Recruitment_Index.php')
	$css_2='on';
elseif ($filename == 'inbox.php')
	$css_3='on';
?>

<div class="mainpage_tab_block <?php echo $css_1; ?>" onclick=<?php echo '"location.href=\'Index.php?graduateId='.$graduateId_Visited.'\';"';?>>我的简历</div>
<div class="mainpage_tab_block <?php echo $css_2; ?>" onclick=<?php echo '"location.href=\'Recruitment_Index.php?graduateId='.$graduateId_Visited.'\';"';?>>找工作</div>
<div class="mainpage_tab_block <?php echo $css_3; ?>" onclick=<?php
	$str_inbox = '"location.href=\'inbox.php?graduateId='.$graduateId_Visited.'\';"';
	if($_SESSION["Graduate_Id"] == null) $str_inbox.=' style="display:none;"';
	echo $str_inbox;
	?> >收件箱</div>
<div class="clear"></div>